package tmall.framework.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
public interface ServiceMapper<T> {

    public T queryEObjById(Long id);

    public IPage<T> queryEObjByCondition(T input,IPage<T> page);

    public boolean deleteLogicEObjById(T input);

    public boolean deletePhysicalEObjById(Long Id);

    public T addEObj(T input);

    public boolean batchAddEObj(List<T> input);

    public T updateEObjById(T input);

    public T updateEObjByCondition(T paramEObj,T updateEObj);
}
